package com.models;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Job {

  @Id
  private String id;

  @Indexed
  private String status;

  @DBRef
  private Client owner;

  private Object jobResult;

  public Job() {

  }

  public Job(Client owner, String status) {
    this.owner = owner;
    this.status = status;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Client getOwner() {
    return owner;
  }

  public void setOwner(Client owner) {
    this.owner = owner;
  }

  public Object getJobResult() {
    return jobResult;
  }

  public void setJobResult(Object jobResult) {
    this.jobResult = jobResult;
  }

}
